import Util from '../../common/js/util'

/**
 * @name 系统消息列表
 * @param {Object} params 请求参数
 */
export const sysnoticeList = (params = {}) => {
	params.isAsc = 'desc'
	params.orderByColumn = 'create_time'
	return Util.request({
		url: `/api/sysnotice/list`,
		method: 'POST',
		data: params,
		userId: true,
		shopId: true
	})
}

/**
 * @name 报价消息列表
 * @param {Object} params 请求参数
 */
export const sysnoticeQuotedPriceList = (params = {}) => {
	params.isAsc = 'desc'
	params.orderByColumn = 'create_date'
	return Util.request({
		url: `/api/sysnotice/quotedPriceList`,
		method: 'POST',
		data: params,
		userId: true,
		shopId: true
	})
}